package com.shiro.mapper;

import com.shiro.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ZhangJunqi
 * @Date 2022/3/8 -22:42
 */
@Mapper
@Repository
public interface UserMapper {
    List<User> queryUser();

    User getUserByName(@Param ("userName") String userName);

    int updateUser(User user);
}
